package com.shelpe.services.scheduler.item.authorize;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.SkipListener;
import org.springframework.stereotype.Component;

import com.shelpe.services.scheduler.po.SyncLog;

@Component("authorizeSkipListener")
public class AuthorizeSkipListener implements SkipListener<Long, SyncLog>{

	private static final Logger logger = LoggerFactory.getLogger(AuthorizeSkipListener.class);
	
	@Override
	public void onSkipInRead(Throwable t) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onSkipInWrite(SyncLog item, Throwable t) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onSkipInProcess(Long item, Throwable t) {
		// TODO Auto-generated method stub
		logger.error("AuthorizeSkipListener error {}", t);
	}

}
